AvailableSharesTracker

class AvailableSharesTracker(var lastDateInt: Int, var availableShares: Long)

A class that tracks the number of available shares as of a given date, for a particular security. As the date changes, the number of available shares is adjusted for any splits.

Constructors

Link copied to clipboard
constructor(lastDateInt: Int, availableShares: Long)

Properties

Link copied to clipboard

The number of shares available, corrected for splits as of _lastDate.

Link copied to clipboard

The date the remaining basis is valid for, to track splits properly.

Functions

Link copied to clipboard
fun allot(sharesAllotted: Long)

Remove shares from the available (typically because they have been sold).

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun updateDate(secCurr: CurrencyType, asofDate: Int)

Update the date of this tracker, adjusting the number of available shares for any splits that happened between .getLastDateInt and asofDate.